A single single taxpayer with an income of $24,000 up to $58,150 (inclusive) falls into the 28% "tax bracket."

A good answer might be:

    // check that the income is within range for the 28% bracket
    if ( income >=24000 && income <= 58150  )
      System.out.println("In the 28% bracket." );
    else
      System.out.println("Time for an audit!" );

Complete Logical Expressions

The AND combines the results of two relational expressions. This looks like:

income >= 24000  &&  income <= 58150
-------------       ---------------
relational            relational
expression            expression

Each relational expression must be complete. The following is a MISTAKE:

income >= 24000  &&      <= 58150
-------------        ---------------
relational             not a complete
expression             relational
                       expression

In this INCORRECT logical expression, the characters that follow the && do not form a complete relational expression. The Java compiler will complain if you wrote the program this way.

QUESTION 11:

Here is an incorrect logical expression that is supposed to test if a person's age is between 21 and 35.

age >= 21 && <= 35

Fix the logical expression.